package com.jinyuan.view.slidingmenuview;

import java.util.ArrayList;
import java.util.List;

import com.jinyuan.options.OptionsFragment;

public class SlidingMenuUtil {
	public static List<OptionsFragment> fragments = new ArrayList<OptionsFragment>();

	public static boolean leftIsGone = false;

	public static void finish() {
		if (fragments != null) {
			if (fragments.size() > 0) {
				for (int j = 0; j < fragments.size(); j++) {
					OptionsFragment o = fragments.get(j);
//					System.out.println("----------o为空-----" + j + "-----" + (o == null));
					if (o != null) {
						o.onDestroyView();
					}else{
						
					}
					fragments.remove(o);
				}
			}

		}
	}
}
